#!/bin/bash
# This simple script makes the security policies for
# the RMI implementations.

#generate server policy file
echo "grant codeBase \"file:`pwd`/\" {" > server.policy
echo "    permission java.security.AllPermission;" >> server.policy
echo "};" >> server.policy

#generate client policy file
echo "grant codeBase \"file:`pwd`/\" {" > client.policy
echo "    permission java.security.AllPermission;" >> client.policy
echo "};" >> client.policy
